package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import static org.jsola.hr.example.AttendShiftStaffScheduleExample.E_ATTEND_PLAN_ID;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.E_ATTEND_SHIFT_ID;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.E_ATTEND_SHIFT_NAME;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.E_COMPANY_ID;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.E_DAILY;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.E_DEPT_INFO_ID;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.E_EMP_INFO_ID;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.E_MONTHLY;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.E_TYPE;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.E_YEARLY;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.M_ATTEND_PLAN_ID_MAX;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.M_ATTEND_SHIFT_ID_MAX;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.M_ATTEND_SHIFT_NAME_MAX;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.M_DAILY_MAX;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.M_DEPT_INFO_ID_MAX;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.M_EMP_INFO_ID_MAX;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.M_MONTHLY_MAX;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.M_YEARLY_MAX;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.N_ATTEND_PLAN_ID;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.N_ATTEND_SHIFT_ID;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.N_ATTEND_SHIFT_NAME;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.N_COMPANY_ID;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.N_DAILY;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.N_DEPT_INFO_ID;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.N_EMP_INFO_ID;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.N_MONTHLY;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.N_TYPE;
import static org.jsola.hr.example.AttendShiftStaffScheduleExample.N_YEARLY;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【考勤人员排班表】的参数")
@Data
public class AttendShiftStaffScheduleAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ATTEND_PLAN_ID, example = E_ATTEND_PLAN_ID)
    @Length(max = 32, message = M_ATTEND_PLAN_ID_MAX)
    private String attendPlanId;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_DEPT_INFO_ID, example = E_DEPT_INFO_ID)
    @Length(max = 32, message = M_DEPT_INFO_ID_MAX)
    private String deptInfoId;

    @ApiModelProperty(notes = N_EMP_INFO_ID, example = E_EMP_INFO_ID)
    @Length(max = 32, message = M_EMP_INFO_ID_MAX)
    private String empInfoId;

    @ApiModelProperty(notes = N_YEARLY, example = E_YEARLY)
    @Length(max = 10, message = M_YEARLY_MAX)
    private String yearly;

    @ApiModelProperty(notes = N_MONTHLY, example = E_MONTHLY)
    @Length(max = 10, message = M_MONTHLY_MAX)
    private String monthly;

    @ApiModelProperty(notes = N_DAILY, example = E_DAILY)
    @Length(max = 10, message = M_DAILY_MAX)
    private String daily;

    @ApiModelProperty(notes = N_ATTEND_SHIFT_ID, example = E_ATTEND_SHIFT_ID)
    @Length(max = 32, message = M_ATTEND_SHIFT_ID_MAX)
    private String attendShiftId;

    @ApiModelProperty(notes = N_ATTEND_SHIFT_NAME, example = E_ATTEND_SHIFT_NAME)
    @Length(max = 50, message = M_ATTEND_SHIFT_NAME_MAX)
    private String attendShiftName;

    @ApiModelProperty(notes = N_TYPE, example = E_TYPE)
    private Integer type;


}

